# cmake needs this line
cmake_minimum_required(VERSION 3.1)
 
 
# Define project name
project(file_handle_project)

SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -pthread")
 
find_package(OpenCV REQUIRED)
 
message(STATUS "OpenCV library status:")
message(STATUS "    version: ${OpenCV_VERSION}")
message(STATUS "    libraries: ${OpenCV_LIBS}")
message(STATUS "    include path: ${OpenCV_INCLUDE_DIRS}")
 
find_package(PCL 1.8 REQUIRED)
include_directories(${PCL_INCLUDE_DIRS})
link_directories(${PCL_LIBRARY_DIRS})
add_definitions(${PCL_DEFINITIONS})
 
 
 
add_executable(file_handle file_handle.cpp)
target_link_libraries(file_handle )  #${OpenCV_LIBS} ${PCL_LIBRARIES}
add_executable(read_txt read_txt.cpp)
target_link_libraries(read_txt )  #${OpenCV_LIBS} ${PCL_LIBRARIES